package com.wangfa.controller;

import com.wangfa.config.Api;
import com.wangfa.entity.MyPage;
import com.wangfa.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class StudentConsumer {


    @Autowired
    private Api api;

    @RequestMapping("list")
    public MyPage<Student> getstudent(){
        System.out.println( api.getStudents());
        return api.getStudents();
    }

}
